// mtk_stlreader.h: interface for the CStlReader class.
//
//////////////////////////////////////////////////////////////////////



#include <vector>
#include "../TF_Geom/tf_Common.h"


using namespace std;
struct  VER
{
	float x;
	float y;
	float z;
};
struct STL_TRIANGLE
{
	VER vertex[3];
	VER normal;
};
typedef vector<STL_TRIANGLE*> StlVector;

class dllDeclspec CStlReader  
{
public:
	CStlReader(const char fileName[1024]);
	CStlReader();
	virtual ~CStlReader();
	const StlVector& GetPtrArray() const;

public:	
	StlVector m_stlvec;
	bool Read(char *fileName);	
    void Clear();
	void Write(char filename[1024]);
protected:

private:
	char m_fileName[1024];
};

inline const StlVector& CStlReader::GetPtrArray() const
{
	return m_stlvec;
}

